package it.carlom.stickyheader.example;

import it.carlom.stickyheader.example.slice.MainAbilitySlice;
import it.carlom.stikkyheader.core.utils.LogUtil;
import ohos.aafwk.ability.fraction.FractionAbility;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.Window;
import ohos.agp.window.service.WindowManager;
import ohos.utils.PacMap;

public class MainAbility extends FractionAbility {

    @Override
    public void onStart(Intent intent) {
        LogUtil.loge("onStart MainAbility:" + this);
        super.onStart(intent);
        Window window = WindowManager.getInstance().getTopWindow().get();
        window.setStatusBarColor(Color.getIntColor("#757575"));    //状态栏颜色
        super.setMainRoute(MainAbilitySlice.class.getName());
    }

    @Override
    public void onSaveAbilityState(PacMap outState) {
        //避免Fraction 重叠
        LogUtil.loge("onSaveAbilityState MainAbility");
        //  super.onSaveAbilityState(outState);
    }

}
